<?php
require_once("Includes.class.php");

class Calender
{
     public $day;
     public $month;
     public $year;
     public $hour;
     public $minute;
     public $week;


	 
/*public function showCalender()
{
$date = time();
$day = date('d' , $date);

if (!isset($_REQUEST["month"])) $_REQUEST["month"] = date("m");
if (!isset($_REQUEST["year"])) $_REQUEST["year"] = date("Y");
$month = $_REQUEST["month"];
$year = $_REQUEST["year"];

if($month == 1)
{
$prev_year = $year-1;  
$prev_month = 12; 
$next_year = $year;
$next_month = $month+1;
}
else if ($month == 12)
{
$next_year = $year+1;
$next_month = 1;
$prev_year = $year;  
$prev_month = $month-1; 
}
else
{
$prev_year = $year; 
$next_year = $year; 	
$prev_month = $month-1;
$next_month = $month+1;
}
$first_day = mktime(0 , 0 ,0 , $month , 1 , $year);
$title = date('F' , $first_day);
$day_of_week = date('D' , $first_day);
 switch($day_of_week)
 { 
 case "Sun": $blank = 0; break; 
 case "Mon": $blank = 1; break; 
 case "Tue": $blank = 2; break; 
 case "Wed": $blank = 3; break; 
 case "Thu": $blank = 4; break; 
 case "Fri": $blank = 5; break; 
 case "Sat": $blank = 6; break; 
 }

$days_in_month = cal_days_in_month(0, $month, $year) ; 

 echo "<table border=1 width=490 id=\"calenderTable\">";
 echo "<tr>
         <th  colspan=2 align='left'>  <input type=\"button\" value=\"Previous\" onclick =\"showCalender({$prev_month} , {$prev_year})\"></th>
         <th colspan=3 > {$title} {$year} </th>
         <th colspan=2 align='right'><input type=\"button\" value=\"Next\" onclick =\"showCalender({$next_month} , {$next_year})\"></th>
       </tr>";

 echo "<tr><td width=70>Sunday</td><td width=70>Monday</td><td 
       width=70>Tuesday</td><td width=70>Wednesday</td><td width=70>Thursday</td><td 
       width=70>Friday</td><td width=70>Saturday</td></tr>";
 $day_count = 1;
 echo "<tr>";

 while ( $blank > 0 ) 
 { 
 echo "<td></td>"; 
 $blank = $blank-1; 
 $day_count++;
 } 
 $day_num = 1;
 while ( $day_num <= $days_in_month ) 
 { 
 echo "<td > <input class=\"date\" type=\"radio\" name=\"date\" value=" . $year . "-" . $month . "-" .  $day_num . "> $day_num </td>"; 
 $day_num++; 
 $day_count++;
 if ($day_count > 7)
 {
 echo "</tr><tr>";
 $day_count = 1;
 }
 } 
 while ( $day_count >1 && $day_count <=7 ) 
 { 
 echo "<td> </td>"; 
 $day_count++; 
 }
 echo "</tr></table>"; 
}

*/
}
?>